const { ipcRenderer } = require('electron');

module.exports.ping = {
    regist() {
        ipcRenderer.on('asynchronous-reply', (event, arg) => {
            console.log(arg) // prints "pong"
        })
    },
    send() {
        ipcRenderer.send('asynchronous-message', 'ping async');
    },
    syncSend() {
        ipcRenderer.sendSync('synchronous-message', 'ping sync');
    }
}
